﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="businessapp_settlement.aspx.cs" Inherits="SF.Ucenter.admin.finance.businessapp_settlement" %>
<%@ Import Namespace="SF.Common" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>财务通知</title>
    <link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../../css/pagination.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <style type="text/css">
        .date-input {
            width:130px;
        }
    </style>
    <script type="text/javascript">
        //打印订单
        function OrderPrint() {
                var winDialog = top.dialog({
                    title: '打印订单',
                    url: 'finance/business_dialog_print.aspx?id=<%=business_settlement_id %>',
                width: 850
            }).showModal();
        }
    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location"> 
            <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
            <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <a href="business_settlement.aspx?settleNum=<%=model.sf_finance_settlement_num %>" class="home"><span>商户结算记录</span></a>
            <i class="arrow"></i>
            <span>公众号结算记录</span>
        </div>
        <!--/导航栏--> 
        <!--工具栏-->
        <div id="floatHead" class="toolbar-wrap">
            <div class="toolbar">
                <div class="box-wrap">
                    <a class="menu-btn"></a>
                    <div class="l-list">
                        <ul class="icon-list">
                            <li><a class="move" target="_blank" href="businessapp_settlement.aspx?action=export&id=<%=business_settlement_id %>&keywords=<%=keywords %>"><i></i><span>导出</span></a></li>
                            <li><a class="move" href="javascript:OrderPrint();"><i></i><span>打印</span></a></li>
                        </ul>
                    </div>

                    <div class="r-list">
                        <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
                        <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" onclick="btnSearch_Click" >查询</asp:LinkButton> 
                    </div>                     
                </div>
            </div>
        </div>
        <!--/工具栏-->

        <!--列表-->
        <div class="table-container"> 
            <table style="width:100%; margin-bottom:10px;">
                <tr style="width:100%;">
                    <td style="width:30%;font-size:12px;" align="left">
                        结算单编号&nbsp;&nbsp;:&nbsp;&nbsp;
                        <asp:Label ID="lbsettlementnum" style="border-bottom:1px solid black;" Width="135px" runat="server"></asp:Label>
                    </td>
                    <td style="width:33%;font-size:12px;" align="center">
                        商户编号&nbsp;&nbsp;:&nbsp;&nbsp;
                        <asp:Label ID="lbbusinessnum"  style="border-bottom:1px solid black;"  Width="120px" runat="server"></asp:Label>
                    </td>
                    <td style="width:33%;font-size:12px;" align="right">
                        
                        <table>
                            <tr>
                                <td>
                                    商户名称&nbsp;&nbsp;:&nbsp;&nbsp;
                                </td>
                                <td align="center">
                                    <asp:Label ID="lbbusinessname"  style="border-bottom:1px solid black;"  Width="120px" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>                        
                    </td>
                </tr>
            </table>
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <tr>                       
                        <th width="16%">公众服务号</th>
                        <th align="left" width="16%">服务号名称</th>
                        <th align="left" width="16%">经手人</th>
                        <th align="left" width="13%">结算金额</th>
                        <th align="left" width="15%">生成时间</th>
                    </tr>
                    <tbody class="ltbody">

                </HeaderTemplate>
                <ItemTemplate>
                    <tr>                    
                    <td align="center">
                        <asp:HiddenField ID="hidId" runat="server" Value='<%#Eval("appNum")%>' />
                        <%#Eval("appNum")%>
                    </td>
                    <td align="left">
                        <%#Eval("appid_name")%>
                    </td>
                    <td align="left">
                        <%#Eval("user_name")%>
                    </td>
                    <td align="left">
                        <%#Eval("total_amount")%>
                    </td>
                    <td align="left">
                        <%#Eval("create_time")%> 
                    </td>
                </tr>

                </ItemTemplate>
                <FooterTemplate>
                    <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"4\">暂无记录</td></tr>" : ""%>
                    </tbody>
                    </table>
                </FooterTemplate>
            </asp:Repeater>            
        </div>
        <!--/列表-->

        <!--内容底部-->
        <div class="line10"></div>
        <table style="width:100%;">
            <tr style="width:100%;">
                <td style="width:80%;" align="left">
                    <div class="pagelist" style="margin-top:9px;">
                        <div class="l-btns">
                            <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);"
                                OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
                        </div>
                        <div id="PageContent" runat="server" class="default"></div>
                    </div>
                </td>
                <td style="width:auto;font-size:12px; padding-top:10px;" align="right" valign="top">
                    <table>
                        <tr>
                            <td>
                                合计:
                            </td>
                            <td align="center">
                                <asp:Label ID="lbtotal"  style="border-bottom:1px solid black;color:blue;" runat="server" Width="70px" ></asp:Label>(元)
                            </td>
                        </tr>
                    </table>
                               
                </td>
            </tr>
        </table>
        <!--/内容底部-->
    </form>
</body>
</html>